package org.mics.cyy.modular.notice.request;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 公告
 * @author mics
 * @date 2023-10-10
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "公告请求")
public class NoticeRequest implements Serializable{
	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 3876695977222951779L;

	@Schema(description = "公告标题",required = true)
	@NotBlank(message = "公告标题不能为空")
	@Size(min = 2,max = 32,message = "公告标题为2-32位")
	private String title;
	
	@Schema(description = "公告类型id")
	@NotBlank(message = "公告标题类型不能为空")
	private String typeId;
	
	@Schema(description = "公告内容")
	@NotBlank(message = "公告标题类型不能为空")
	private String content;
}
